package com.project.im.infra.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.im.infra.entity.WebUser;
import com.project.im.infra.mapper.WebUserMapper;
import com.project.im.infra.service.WebUserService;
import org.springframework.stereotype.Service;

@Service("webUserService")
public class WebUserServiceImpl extends ServiceImpl<WebUserMapper, WebUser> implements WebUserService {
    @Override
    public WebUser getByUsername(String username) {
        return lambdaQuery().eq(WebUser::getUsername, username).one();
    }
}
